/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package kotionokyurievna.gmail.com.bankproject.logic;

import kotionokyurievna.gmail.com.biginteger.logic.*;

/**
 *
 * @author kotionokyurievna
 */
public class SimpleThread implements Runnable{

    private Bank bank;
    private int fromAccount;
    private int toAccount;
    private int amount;
    
    public SimpleThread( Bank bank, int from, int to, int amount ){
        this.bank = bank;
        fromAccount = from;
        toAccount = to;
        this.amount = amount;
    }
    
    @Override
    public void run() {
        bank.transfer(fromAccount, toAccount, amount);
    }
    
}
